﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using GiveAQuiz.Client.Data.DataServices;
using GiveAQuiz.Common;

namespace GiveAQuiz.QuizManager.Views
{
  public partial class ToolbarView : UserControl
  {
    public ToolbarView()
    {
      InitializeComponent();

    }

    private void StackPanel_Loaded(object sender, RoutedEventArgs e)
    {
      new DoubleClickWrapper(sender as UIElement, s =>
        {
          // Executing the command on the button so that double clicking
          // will duplicate this.
          copyButton.Command.Execute(questionList.SelectedItem);
        });
    }

  }
}
